﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Offline.Core;
using System.Data;

namespace Crosland.Offline.Logic
{
    public class UbigeoLogic
    {
        public DataSet GetByListRegion()
        {
            return Factory.GetUbigeoDao().GetByListRegion();
        }

        public DataSet GetByCriteriaPoblacion(string IdRegion)
        {
            DataSet ds = new DataSet();
            if (IdRegion != "")
            {
                ds = Factory.GetUbigeoDao().GetByCriteriaPoblacion(IdRegion);
            }

            return ds;
        }

        public DataSet GetByCriteriaDistrito(string IdPoblacion)
        {
            DataSet ds = new DataSet();
            if (IdPoblacion != "")
            {
                ds = Factory.GetUbigeoDao().GetByCriteriaDistrito(IdPoblacion);
            }

            return ds;
        }
    }
}
